﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ViewbyProductSN.aspx.cs" Inherits="ViewbyProduct_Interim_ViewbyProductSN" Title="按腔体序列号查询调试测试数据" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <br />
        <asp:Panel ID="Panel1" runat="server" Height="29px">
            输入要查询的腔体序列号：<asp:TextBox ID="TextBox3" runat="server" Width="225px"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="TextBox3" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="查 询" 
            ValidationGroup="VGroup1" Width="63px" />
        </asp:Panel>
        <br />
        <asp:Label ID="Label3" runat="server" Text="查询结果：" Width="162px"></asp:Label>
        </div>
        <br />
        <br />
        
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div>
        <asp:GridView ID="GridView1" runat="server" CellPadding="3" 
            DataKeyNames="ProductSN,TestTime,ProductTypeID,UserID,ENAID,SpecVersion,IsPass" GridLines="None" 
            OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
            BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" EmptyDataText="没有相关数据" 
            AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" 
            Width="100%" PageSize="20">
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <Columns>
                <asp:CommandField HeaderText="查看" SelectText="详细" ShowSelectButton="True" />
                <asp:HyperLinkField DataNavigateUrlFields="ProductSN" 
                    DataNavigateUrlFormatString="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}" 
                    DataTextField="ProductSN" HeaderText="腔体序列号" 
                    NavigateUrl="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx" 
                    Text="ProductSN" />
                <asp:BoundField DataField="TestTime" HeaderText="测试时间" />
                <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型编号" />
                <asp:BoundField DataField="UserID" HeaderText="测试员工号" />
                <asp:BoundField DataField="ENAID" HeaderText="矢网编号" />
                <asp:BoundField DataField="SpecVersion" HeaderText="指标单版本" />
                <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
            </Columns>
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
        </div>    
    </ContentTemplate> 
    </asp:UpdatePanel> 
</asp:Content>

